/*
 * @#(ProviderV1Api.java)           2017/9/6
 *
 * Copyright (c) 2017. Hangzhou cloorc Technology Co. LTD
 * 369 Heshan Road, Hangzhou, Zhejiang, 310000, China.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Hangzhou cloorc Technology Co. LTD ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with Hangzhou cloorc Technology Co. LTD.
 */

package com.cloorc.example.clouds.api;

import com.cloorc.example.fallback.api.ProviderV1ApiFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * First implementation on 20:06 星期三,九月 2017/9/6.
 *
 * @author : Z0228
 * @version : 1.0.0
 * @since : 1.8
 */
@FeignClient(value = "${service.provider.v1:provider}", fallback = ProviderV1ApiFallback.class)
public interface ProviderV1Api {

    @RequestMapping(value = "/hello", method = RequestMethod.POST)
    ResponseEntity<List<String>> hello(@RequestBody final WhereWho whereWho);
}
